{config_load file=global.conf}
{config_load file="_sparklines.conf" section="`$lang`"}
{config_load file="_TrackForecasts.conf" section="`$lang`"}

<h2>
{if $Staff->AccessAllowed()}
{#_sparklines__labelCurrent#}{*Current Forecasts*}
{else}
{#_sparklines__labelRecent#}{*Recent Forecasts*}
{/if}
</h2>

<div class="menu_left">

{literal}
<script type="text/javascript">
<!--

var ctr=1;
// -->
</script>
{/literal}

{*<table width="100%" class="sparkline" border="0" cellpadding="0" cellspacing="0">*}
<div id="divSparklines" name="divSparklines">&#160;</div>
{*</table>*}

<div style="font-size:11px; padding-top:5px; padding-bottom:10px; margin-bottom: 5px; ">
<img src="{#images_dir#}/breadcrumb_arrow.gif" />
<a href="/{$lang}/track-record.html">{#_TrackForecasts__PerfTrackLabel#}</a> |
<a href="/{$lang}/performance-calculator.html">{#_TrackForecasts__PerfCalcLabel#}</a>
<!--<a href="/{$lang}/performance-archive.html">{#_sparklines__labelArchive#}{*Forecasts Archive*}</a> -->
</div>

{literal}
<script type="text/javascript" language="JavaScript" src="scripts/globalFuncs.js" ></script>
<script type="text/javascript">
<!--

 function sparkHover(cnter,action) {
 	var styleClass;
 	var styleAttr;
 	action=='over' ? styleClass='sparkline_image_hover' : styleClass='sparkline_image';
 	//document.getElementById('img'+cnter).getAttribute('class') ? styleAttr='class' : styleAttr='className';
  	//document.getElementById('img'+cnter).setAttribute(styleAttr,styleClass);

 }

function emptyFunc(){ }

function xajaxLoading(){
  	xajax.loadingFunction = emptyFunc;
 	xajax.doneLoadingFunction = emptyFunc;
}


function loadSparksIn(){

	xajaxLoading();
 	xajax_showSparkLinesIn({/literal}'{$Staff->getSystem()}'{literal});

}

function loadSparksOut(){

	xajaxLoading();
	xajax_showSparkLinesOut({/literal}'{$Staff->getSystem()}'{literal});

}


{/literal}
{if $Staff->AccessAllowed() }
   addLoadEvent(loadSparksIn);
{else}
   addLoadEvent(loadSparksOut);
{/if}
{literal}
//    setInterval("xajax_showSparkLines()", 12000000);
// --></script>
{/literal}


</div>
